When the ImageXView.Image has a bit depth of 8 bits or less, the image's palette is realized by the display device. In other words, the image's palette combines with the display device's logical palette and is used to display the image.
You can specify a different behavior by setting the ImageXView.PaletteType property.
Setting the PaletteType property does not change the palette stored with the ImageXView.Image, but does change the palette realized by the display device. |
If PaletteType is set to:
-
Null, then use the image's palette when displaying.
-
UserDefined, then use the ImageXView.GetPaletteColor and SetPaletteColor methods to define and access a user-defined palette.
-
PalFile, then use the ImageXView.PaletteFilename property to set and get the source for the palette.
-
Gray, then a fixed gray palette is used.
-
Fixed, then an ImageXView internally defined palette is used.
-
Optimized, then the image is analyzed and the best palette is used.